package org.dromara.business.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 购物车对象 shopping_cart
 *
 * @author zlj
 * @date 2024-08-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@TableName("shopping_cart")
public class ShoppingCart extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "shopping_cart_id")
    private Long shoppingCartId;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品图片id
     */
    private Long url;

    /**
     * 商品id
     */
    private Long goodsId;

    /**
     * 商品价格
     */
    private BigDecimal price;

    /**
     * 数量
     */
    private BigDecimal num;

    private BigDecimal allPrice;

}
